<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
		
	<!-- cabecera -->
	<jsp:include page="/jsp/comun/cabecera.jsp"></jsp:include>
	<!-- menu -->
	<jsp:include page="/jsp/comun/menu.jsp"></jsp:include>
	
	<!-- cuerpo de la pagina -->
	<html:form action="login" method="post">
	
		<!-- lateral izquierdo -->
		<div style="float: left; width: 30%">&nbsp;</div>		
						
		<div class="contenedor" style="width: 40%;">		
				
			<div class="cabeceraDiv">
				<bean:message key="login.acceso"/>
			</div>
			
			<div id="myform" class="cssform" style="padding:10px;">
			
				<%-- En caso de que existan errores, los mostramos --%>
				<jsp:include page="/jsp/common/mensajesError.jsp"></jsp:include>
								
				<br/>
			
				<!-- email -->
				<div class="linea">
					<label for="email" class="styled"><bean:message key="login.email" />:</label>
					<html:text size="22" property="email" />
				</div>
				
				<!-- password -->
				<div class="linea">
					<label for="password" class="styled"><bean:message key="login.password" />:</label>
					<html:password size="22" property="password" />
				</div>
				
				<p>
					<html:submit styleClass="boton" value="Login" />
				</p>
				<p>
					<html:link styleClass="enlace" action="toForgotPassword">
						<bean:message key="login.forgot.pwd" />
					</html:link>
				</p>
				<p>
					<bean:message key="login.question.registro" />
					<html:link action="toRegistroUsuario">
						<bean:message key="login.registrate" />
					</html:link>
				</p>
			
			</div>					
		
		</div>	
	   
		<!-- lateral derecho -->
		<div style="float: left; width: 30%">&nbsp;</div>
			
	</html:form>
	
	<!-- footer -->
 	<jsp:include page="/jsp/comun/footer.jsp"></jsp:include>
 
 </body>
 
</html>